import pygame
import inputhandler
from object import *
from config import *
import math

pygame.init()

window = pygame.display.set_mode((screenx,screeny))

screen = pygame.display.get_surface() 

purple = pygame.Color("purple")
black = pygame.Color("black")

rotated = ((-50,-50),(50,50),(0,-50))

pygame.draw.polygon(screen,purple,rotated)


quit = 0
while not quit:
    rot = rotated[:]
    rotated = []
    for i in rot:
        x = i[0]
        y = i[1]
        x = math.sin(1)*x
        y = math.cos(1)*y
        ap = (x,y)
        rotated.append(ap)
    quit = inputhandler.inputhandler(pygame.event.get())
    pygame.display.flip()